
package com.trydofor.id.logs;

/**
 * log level
 * 
 * @author : Shi Rongjiu (www.trydofor.com)
 */
public enum LogLevel {
    
    /**
     * TRACE
     */
    TRACE(500),

    /**
     * DEBUG
     */
    DEBUG(400),

    /**
     * INFO
     */
    INFO(300),

    /**
     * WARN
     */
    WARN(200),

    /**
     * ERROR
     */
    ERROR(100),

    /**
     * Nothing to log
     */
    NONE(0);
    
    private int level;
    
    private LogLevel(int level) {
        this.level = level;
    }
    
    /**
     * @return The numeric log level
     */
    public int getLevel() {
        return level;
    }
}
